package com.bsg.upm.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 慢日志数据传输对象
 * 
 * @author HCK
 *
 */
public class SlowLogDto implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private long size;

	private long querySum;

	private long uniqueQuerySum;

	private List<SlowLogDetailDto> slowLogDetails = new ArrayList<>();

	/**
	 * 获取size
	 * 
	 * @return size size
	 */
	public long getSize() {
		return size;
	}

	/**
	 * 设置size
	 * 
	 * @param size
	 *            size
	 */
	public void setSize(long size) {
		this.size = size;
	}

	/**
	 * 获取querySum
	 * 
	 * @return querySum querySum
	 */
	public long getQuerySum() {
		return querySum;
	}

	/**
	 * 设置querySum
	 * 
	 * @param querySum
	 *            querySum
	 */
	public void setQuerySum(long querySum) {
		this.querySum = querySum;
	}

	/**
	 * 获取uniqueQuerySum
	 * 
	 * @return uniqueQuerySum uniqueQuerySum
	 */
	public long getUniqueQuerySum() {
		return uniqueQuerySum;
	}

	/**
	 * 设置uniqueQuerySum
	 * 
	 * @param uniqueQuerySum
	 *            uniqueQuerySum
	 */
	public void setUniqueQuerySum(long uniqueQuerySum) {
		this.uniqueQuerySum = uniqueQuerySum;
	}

	/**
	 * 获取slowLogDetails
	 * 
	 * @return slowLogDetails slowLogDetails
	 */
	public List<SlowLogDetailDto> getSlowLogDetails() {
		return slowLogDetails;
	}

	/**
	 * 设置slowLogDetails
	 * 
	 * @param slowLogDetails
	 *            slowLogDetails
	 */
	public void setSlowLogDetails(List<SlowLogDetailDto> slowLogDetails) {
		this.slowLogDetails = slowLogDetails;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "SlowLogDto [size=" + size + ", querySum=" + querySum + ", uniqueQuerySum=" + uniqueQuerySum
				+ ", slowLogDetails=" + slowLogDetails + "]";
	}

}
